
package com.probiz.estore.core.view.export;

import org.apache.commons.lang.ObjectUtils;
import org.displaytag.export.CsvView;

public class ProbizCsvView extends CsvView {

	@Override
	protected String escapeColumnValue(Object rawValue) {
		if (rawValue == null) {
			return null;
		}
		String returnString = ObjectUtils.toString(rawValue);
		// wuliantian 2010.07.12
		returnString = EscapeHtmlTagsForReport.escapeHtmlTags(returnString);
		return returnString;
	}
	@Override
	public String getMimeType() {
		//使用charset=GB2312虽然不会乱码，但是速度会非常慢
		//return "text/csv"; //$NON-NLS-1$
		return "text/csv;charset=GB2312"; //$NON-NLS-1$
	}
	
	
}
